home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Examples / Draw / Include / OvalShp.h < prev    next >
Encoding:
Text File  |  1995-11-08  |  2.1 KB  |  82 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                OvalShp.h
  4. //    Release Version:    $ 1.0d11 $
  5. //
  6. //    Author:                Henri Lamiraux
  7. //
  8. //    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  9. //
  10. //========================================================================================
  11.  
  12. #ifndef OVALSHP_H
  13. #define OVALSHP_H
  14.  
  15. #ifndef CONSTANT_H
  16. #include "Constant.h"
  17. #endif
  18.  
  19. #ifndef BASESHP_H
  20. #include "BaseShp.h"
  21. #endif
  22.  
  23. #ifndef BOUNDSHP_H
  24. #include "BoundShp.h"
  25. #endif
  26.  
  27. // ----- Foundation Layer -----
  28.  
  29. #ifndef FWRUNTYP_H
  30. #include "FWRunTyp.h"
  31. #endif
  32.  
  33. //========================================================================================
  34. // Forward Declarations
  35. //========================================================================================
  36.  
  37. #if FW_LIB_EXPORT_PRAGMAS
  38. #pragma import on
  39. #endif
  40. /*class FW_CLASS_ATTR ODFacet;
  41. class FW_CLASS_ATTR ODShape;
  42. class FW_CLASS_ATTR FW_CGraphicContext;
  43. class FW_CLASS_ATTR FW_CRect;
  44. class FW_CLASS_ATTR FW_PInk;
  45. class FW_CLASS_ATTR FW_PStyle;
  46. class FW_CLASS_ATTR FW_CMouseEvent;*/
  47. #if FW_LIB_EXPORT_PRAGMAS
  48. #pragma import off
  49. #endif
  50.  
  51. //class FW_CLASS_ATTR CDrawFacetClipper;
  52.  
  53. //========================================================================================
  54. // class COvalShape
  55. //========================================================================================
  56.  
  57. class FW_CLASS_ATTR COvalShape : public CBoundedShape
  58. {
  59. public:
  60.     FW_DECLARE_CLASS
  61.  
  62. public:
  63.     COvalShape();
  64.     COvalShape(FW_CReadableStream& archive);
  65.     virtual ~COvalShape();
  66.         
  67.     // ----- Selection
  68.     virtual FW_Boolean    HitTest(Environment *ev, FW_CGraphicContext& gc, const FW_CMouseEvent& theMouseEvent) const;
  69.     virtual void        RenderShape(Environment* ev, ODFacet* facet, FW_CGraphicContext& gc);
  70.     
  71.     // ----- Shape -----
  72.     virtual void        GetClipRegion(Environment* ev, ODShape* clipRegion);
  73.     virtual ODShape*    CreateShapeOutline(Environment *ev);
  74.  
  75.     // ----- Archiving -----
  76.     static void*         Read(FW_CReadableStream& archive);
  77.  
  78. private:
  79.     virtual void        OutlineShape(FW_CGraphicContext& gc, const FW_PInk& ink, const FW_PStyle& style, const FW_CRect& rect);
  80. };
  81.  
  82. #endif